package com.huli.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huli.domain.HuliAddress;
import com.huli.service.HuliAddressService;
import com.huli.mapper.HuliAddressMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 张庆阳
* @description 针对表【huli_address】的数据库操作Service实现
* @createDate 2025-03-13 10:34:32
*/
@Service
public class HuliAddressServiceImpl extends ServiceImpl<HuliAddressMapper, HuliAddress>
    implements HuliAddressService{
@Autowired
private HuliAddressMapper huliAddressMapper;
//订单管理的地址查询
    @Override
    public HuliAddress findAll(Integer id) {
       HuliAddress huliAddress= huliAddressMapper.findAll(id);
       return huliAddress;
    }


    //地址删除功能
    @Override
    public Integer deleteById(Integer id) {
        int deleteById = huliAddressMapper.deleteById(id);
        return deleteById;
    }
    //地址管理的地址列表查询
    @Override
    public List<HuliAddress> findAll1() {
        List<HuliAddress> list= huliAddressMapper.findAll1();
        return list;
    }

    @Override
    public List<HuliAddress> findall() {
        List<HuliAddress> huliAddresses = huliAddressMapper.FindAll();
        return huliAddresses;
    }

    @Override
    public String findAdderss(Integer id) {
        String addressByname = huliAddressMapper.findAddressByname(id);
        return addressByname;
    }


}




